﻿//
// Copyright (c) 2024 BPer
//

#ifndef BPERDECODER_INCLUDE_BPERAUDIODECODER_H_
#define BPERDECODER_INCLUDE_BPERAUDIODECODER_H_
#include <bperutil/BPerAvInfoType.h>
#include <bperstream/BPerStreamType.h>
#include "BPerDecoder.h"


class BPerAudioDecoder{
public:
	BPerAudioDecoder();
	virtual ~BPerAudioDecoder();
    virtual void init()=0;
    virtual int32_t decode(BPerFrame* pframe,BPerDecoderCallback* pcallback)=0;
    int32_t m_uid;
protected:
	int32_t m_isInit;
	int32_t m_frameSize;
	int32_t m_alen;
	BPerAudioParam *m_context;
	uint8_t* m_dstBuffer;
	int32_t m_dstLen;
};

#endif /* BPERDECODER_INCLUDE_BPERAUDIODECODER_H_ */
